<%@ page contentType="text/html;charset=UTF-8" language="java" pageEncoding="UTF-8" %>
<html>
<head>
    <title>iworkh-springmvc-mainPage</title>
</head>
<body>


<h2>1.@requestMapping</h2>

<h3>测试路径</h3>
<a href="/springmvc/testRequestMappingValue">testRequestMappingValue</a>

<h3>测试方法-get</h3>
<a href="/springmvc/testRequestMappingMethodGet">testRequestMappingMethodGet</a>

<h3>测试方法-post</h3>
<form action="/springmvc/testRequestMappingMethodPost" method="post">
    <input type="submit" value="testRequestMappingMethodPost">
</form>

<h3>测试参数</h3>
<a href="/springmvc/testRequestMappingParams?userName=iworkh&age=20">testRequestMappingParams1</a>
<br/>
<a href="/springmvc/testRequestMappingParams?userName=iworkh&age=28">testRequestMappingParams2</a>
<br/>
<a href="/springmvc/testRequestMappingParams?userName=iworkh">testRequestMappingParams3</a>
<br/>
<a href="/springmvc/testRequestMappingParams?age=18">testRequestMappingParams4</a>

<h3>测试头</h3>
<a href="/springmvc/testRequestMappingHeaders">testRequestMappingHeaders</a>

<h3>测试Ant匹配符</h3>
<a href="/springmvc/testRequestMappingAntPattern/iworkh-Ant/a">testRequestMappingAntPattern</a>

<h2>2.@PathVariable</h2>
<a href="/springmvc/testPathVariable/0001">testPathVariable</a>

<h2>3.@RequestParam</h2>
<a href="/springmvc/testRequestParam?userName=iworkh&age=28">testPathVariable1</a>
<br/>
<a href="/springmvc/testRequestParam?userName=iworkh">testPathVariable2</a>

<h2>4.@RequestHeader</h2>
<a href="/springmvc/testRequestHeader">testRequestHeader</a>

<h2>5.@CookieVlue</h2>
<a href="/springmvc/testCookieValue">testCookieValue</a>


<h2>6.POJO作为参数</h2>
<form action="/springmvc/testPojoParam" method="post">
    name: <input type="text" name="name">
    age: <input type="number" name="age">
    city: <input type="text" name="address.city">
    street: <input type="text" name="address.street">
    <input type="submit" value="testPojoParam">
</form>

<h2>7.@Servlet作为参数</h2>
<a href="/springmvc/testServletParam">testServletParam</a>

</body>
</html>
